<template>
  <el-header id="topbar">
    <div class="my-container header-bg">
      <menu-a :data-menu="dataMenu"/>
      <div class="user">
        <User />
        <div class="cart">
          <nuxt-link to="/">
            购物车( 0 )
          </nuxt-link>
        </div>
      </div>
    </div>
  </el-header>
</template>

<script>
import dataMenu from 'assets/data/data-layout-default-topbar'
import User from './user'
import menuA from './menu-a'
export default {
  components: {
    User,
    menuA
  },
  data() {
    return {
      isShowAgree: true,
      dataMenu: dataMenu.topBar
    }
  }
}
</script>

<style lang="stylus">
.header-bg
  background-color #333333
#topbar
  background-color #333333
  height 40px !important
  .my-container
    width 1228px
    display flex
    margin 0 auto
    .user
      display flex
      line-height 40px
      font-size 12px
      .log
        margin-right 27px
      .cart
        width 120px
        text-align center
        background-color #424242
      a
        color #b0b0b0
        &:hover
          color #fff
      .seperator
        color #3b423b
        display inline-block
        width 12px
        text-align center
</style>
